package com.liuguang.testassert.pojo;

import lombok.Data;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * @ClassName: TestUser
 * @Description：
 * @Author: wanghr
 * Date: 4:58 PM 2020/6/29
 * Version: 1.0
 */
@Component
@Data
public class TestUser implements InitializingBean {
    private String name = "小红";
    private Integer age = 11;

    @PostConstruct
    public void ss() {
        name  = "小白";
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        name = "小花";
    }

}
